package ankang.day140104;

public class Test6 {
    public static void main(String[] args) {
        /*变量;
        while(变量构成条件){
            //重复的代码;
            变量改变;
        }*/


        //1000   9999
        int year=1000;
        while(year<=9999){
            if((year % 4 == 0   &&   year % 100 != 0)   ||    (year % 400 == 0 )){
                System.out.println("是闰年");
            }else{
                System.out.println("不是闰年");
            }
            year++;
        }

        for(year=1000;  year<=9999;  year++){
            if((year % 4 == 0   &&   year % 100 != 0)   ||    (year % 400 == 0 )){
                System.out.println("是闰年");
            }else{
                System.out.println("不是闰年");
            }
        }




    }
}
